package com.bawei.module_notice.http

import com.bawei.lib_common.base.BaseResponse

import com.bawei.module_notice.model.NoticeModel

import okhttp3.Response
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface AnnouncementApi {
    @GET("api/announcements")
    suspend fun getAnnouncements(
        @Query("page") page: Int = 0,
        @Query("size") size: Int = 10
    ):BaseResponse<List<NoticeModel>>

    @GET("api/announcements/{id}")
    suspend fun getNoticeDetail(@Path("id") id: Int): BaseResponse<NoticeModel>
}